package com.ylxn.construstor;

/**
 * 构建者设计模式测试
 */
public class ConstrustorTest {
    public static void main(String[] args) {
        ComputerBuilder computerBuilder = new ComputerBuilder();
        computerBuilder.installkeyboard("雷蛇");
        computerBuilder.installmouse("G502");
        computerBuilder.installDisplayer("小米");
        computerBuilder.installMainUnit("华硕");
        Computer computer = computerBuilder.getComputer();
        System.out.println(computer.toString());
    }
}
